package com.ljm.security.util;

import com.alibaba.fastjson.JSON;

import java.util.HashMap;
import java.util.Map;

/**
 * @author: ChenHuaMing
 * @Date: 2020/6/11 09:17
 * @Description:
 */
public class SecurityResponseUtil {
    public static String handleResponseString(int status,String msg){
        Map<String,String> map=new HashMap<>(2);
        map.put("status", String.valueOf(status));
        map.put("message", msg);
        return JSON.toJSONString(map);
    }
}
